﻿using SqlSugar;
using System;

namespace YXY.Identity.Model.Common
{
    public class BaseModel
    {
        /// <summary>
        /// 主键 
        ///</summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public Guid Id { get; set; } = Guid.NewGuid();
        /// <summary>
        /// 创建人
        /// </summary>
        public Guid CreateUserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime{ get; set; } = DateTime.Now;
        /// <summary>
        /// 更新人
        /// </summary>
        public Guid UpdateUserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime UpdateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 删除标识
        /// </summary>
        public int IsDelete { get; set; } = 0;
    }
}
